package com.blb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    //url hello ---> String hello() : key - value  url --> handler方法 HandlerMapping map
    //hello 返回值 ModelAndView
    @RequestMapping("/{path}")
    public String toPage(@PathVariable String path){
        return path;
    }
}
